import request from "@/utils/request";
import { serviceModule } from "@/api/serviceModule.js";
export function getData(baseURL, url, method, params) {
  return request({
    baseURL: serviceModule?.[baseURL] || undefined,
    url,
    method,
    params,
  });
}

export const configAPI = {
  //币种
  currency: {
    url: "/exchangeRate/options",
    method: "get",
    params: {},
  },
  //option
  option: {
    url: "/api/goods/get-option",
    method: "get",
    params: {},
  },
  //站点
  site: {
    baseURL: "base",
    url: "/v1/platform/sites",
    method: "get",
    params: {},
  },
  //平台站点
  platform: {
    baseURL: "base",
    url: "/v1/platform/tree",
    method: "get",
    params: {},
  },
  //店铺列表
  shop: {
    baseURL: "base",
    url: "/v1/shop/drop-list",
    method: "post",
    data: {},
  },
  //币种
  
};
